<?php
/**
 * +----------------------------------------------------------------------
 * | Copyright © Sogu Technologies Co. Ltd 2018-2050 All rights reserved.
 * +----------------------------------------------------------------------
 * | File name: R360CheckInfo.php
 * +----------------------------------------------------------------------
 * | Author: sam
 * +----------------------------------------------------------------------
 * | Description: 用于详细说明此程序文件完成的主要功能，与其他模块或函数的接口、输出值、取值范围、含义及参数间的控制、顺序或依赖等关系。
 * +----------------------------------------------------------------------
 * | Others: 其他内容的说明
 * +----------------------------------------------------------------------
 * | History: 修改历史记录列表，每条修改记录应包含修改日期、修改者及修改内容简述
 * +----------------------------------------------------------------------
 * | 1.Date: 2019-02-22 Author: sam Modification: 创建
 * +----------------------------------------------------------------------
 */

namespace App\Library\Source\Rong360;


use App\Models\User;

class R360CheckInfo
{
    public static function append(User $user)
    {
        if($user->validCert->isNotEmpty()){
            $user->r360_check = strtoupper(md5($user->phone_num . strtoupper($user->validCert)));
            $user->save();
        }
        return true;
    }
}